package com.ojoin.ojoin.eb_spider.service;

import java.util.List;
import java.util.Map;

import org.dom4j.DocumentException;
import org.springframework.stereotype.Service;

import com.ojoin.ojoin.eb_spider.domain.AlipayAccount;
import com.ojoin.ojoin.eb_spider.domain.AlipayCheckException;
import com.ojoin.ojoin.eb_spider.domain.EmailMessage;

/**
 * 
 * 
 * @author zwc
 * 
 */
@Service
public interface AlipayCheckExceptionService {

	public Map<String,AlipayCheckException> getCache(EmailMessage emailMessage);

	public boolean isSend(Map<String, AlipayCheckException> map,List<AlipayAccount> lists); 
	
	/**
	 * 判断是否需要发送
	 * @return
	 */
	
	public boolean needToSend(boolean needCheck,AlipayCheckException alipayCheckException,AlipayCheckException stand) ;
	
	
	/**
	 * 初始化发送内容
	 * @param alipayCheckException
	 * @return
	 */
	//public boolean initSendMailStyle(boolean needCheck,AlipayCheckException alipayCheckException,AlipayCheckException stand);
	
	public String getHtmlStyle(String color,String content);

	public String getHtmlFontStyle(String color,String content);
	
	public String getHtmlFontStyle(String content);
	
	
	public  String getHtmlStyle(String content);
	
	
	public  String getHtmlStyle();
	
	public AlipayCheckException getStandard(String uname) throws DocumentException;
	
	public AlipayCheckException saveStandard(String uname,AlipayCheckException alipayCheckException) ;
}
